package com.exonline.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @desc  方向
 * @author: jjr
 * @date: 2020/5/14 15:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Direction {
    public  String directionName;
    public List<Subject> subjects = new ArrayList<>();

    public List<Subject> addSubjects (Subject subject) {
        subjects.add(subject);
        return subjects;
    }
}
